nonlin_simple Module



Functions

public function solve_bfgs(fcn, xo, args) result(x)

Utilizes the BFGS method for minimizing a function of N variables. For more control over the solver it is recommended to utilize the bfgs type. This function is a convenience wrapper around this solver.

Arguments

Type IntentOptional Attributes Name
procedure(scalar_function) :: fcn

The function.

real(kind=real64), intent(in), dimension(:) :: xo

An N-element array containing an initial guess at the solution.

class(*), intent(in), optional :: args

An optional object that can be used to pass information to fcn.

Return Value real(kind=real64), allocatable, dimension(:)

An N-element array containing the values of that minimize within the default solver tolerances.

public function solve_brent(fcn, bracket, args) result(x)

Utilizes Brent's method to solve a scalar equation of the form . For more control over the solver it is recommended to utilize the brent_solver type. This function is a convenience wrapper around this solver.

Arguments

Type IntentOptional Attributes Name
procedure(fcn1var) :: fcn

The function.

type(value_pair), intent(in) :: bracket

An initial estimate that brackets the solution.

class(*), intent(in), optional :: args

An optional object that can be used to pass information to fcn.

Return Value real(kind=real64)

The value of that satisfies within the default solver tolerances.

public function solve_continuation(fcn, xo, args) result(x)

Utilizes a continuation solver to solve a system of N equations and N unknowns. For more control over the solver it is recommended to utilize the continuation_solver type. This function is a convenience wrapper around this solver.

Arguments

Type IntentOptional Attributes Name
procedure(vector_function) :: fcn

The function.

real(kind=real64), intent(in), dimension(:) :: xo

An N-element array containing an initial guess at the solution.

class(*), intent(in), optional :: args

An optional object that can be used to pass information to fcn.

Return Value real(kind=real64), allocatable, dimension(:)

An N-element array containing the values of that satisfies within the default solver tolerances.

public function solve_continuation_pseudo_arclength(fcn, xo, args) result(x)

Utilizes a pseudo-arclength continuation solver to solve a system of N equations and N unknowns. For more control over the solver it is recommended to utilize the continuation_solver type. This function is a convenience wrapper around this solver.

Arguments

Type IntentOptional Attributes Name
procedure(vector_function) :: fcn

The function.

real(kind=real64), intent(in), dimension(:) :: xo

An N-element array containing an initial guess at the solution.

class(*), intent(in), optional :: args

An optional object that can be used to pass information to fcn.

Return Value real(kind=real64), allocatable, dimension(:)

An N-element array containing the values of that satisfies within the default solver tolerances.

public function solve_nelder_mead(fcn, xo, args) result(x)

Utilizes the Nelder-Mead method for minimizing a function of N variables. For more control over the solver it is recommended to utilize the nelder_mead type. This function is a convenience wrapper around this solver.

Arguments

Type IntentOptional Attributes Name
procedure(scalar_function) :: fcn

The function.

real(kind=real64), intent(in), dimension(:) :: xo

An N-element array containing an initial guess at the solution.

class(*), intent(in), optional :: args

An optional object that can be used to pass information to fcn.

Return Value real(kind=real64), allocatable, dimension(:)

An N-element array containing the values of that minimize within the default solver tolerances.

public function solve_newton(fcn, xo, args) result(x)

Utilizes Newton's method to solve a system of N equations and N unknowns. For more control over the solver it is recommended to utilize the newton_solver type. This function is a convenience wrapper around this solver.

Arguments

Type IntentOptional Attributes Name
procedure(vector_function) :: fcn

The function.

real(kind=real64), intent(in), dimension(:) :: xo

An N-element array containing an initial guess at the solution.

class(*), intent(in), optional :: args

An optional object that can be used to pass information to fcn.

Return Value real(kind=real64), allocatable, dimension(:)

An N-element array containing the values of that satisfies within the default solver tolerances.

public function solve_newton_1var(fcn, bracket, args) result(x)

Utilizes Newton's method to solve a scalar equation of the form . For more control over the solver it is recommended to utilize the newton_1var_solver type. This function is a convenience wrapper around this solver.

Arguments

Type IntentOptional Attributes Name
procedure(fcn1var) :: fcn

The function.

type(value_pair), intent(in) :: bracket

An initial estimate that brackets the solution.

class(*), intent(in), optional :: args

An optional object that can be used to pass information to fcn.

Return Value real(kind=real64)

The value of that satisfies within the default solver tolerances.

public function solve_quasi_newton(fcn, xo, args) result(x)

Utilizes a Quasi-Newton method to solve a system of N equations and N unknowns. For more control over the solver it is recommended to utilize the quasi_newton_solver type. This function is a convenience wrapper around this solver.

Arguments

Type IntentOptional Attributes Name
procedure(vector_function) :: fcn

The function.

real(kind=real64), intent(in), dimension(:) :: xo

An N-element array containing an initial guess at the solution.

class(*), intent(in), optional :: args

An optional object that can be used to pass information to fcn.

Return Value real(kind=real64), allocatable, dimension(:)

An N-element array containing the values of that satisfies within the default solver tolerances.